<?php
namespace app\admin\controller;

use app\admin\controller\Base;
use app\admin\model\Admin;
use app\admin\model\AuthRules;
use think\Controller;
use think\Session;

class Index extends Base
{
    public function index()
    {
        //获取权限
        $access = Session::get('access');
        $rules = AuthRules::get_meun($access);
        $this->assign('meun',$rules);
        return $this->fetch('/index');
    }
    //首页
    public function weclome(){

        return $this->fetch();

    }
    //获取权限
    public function admin_access()
    {
        $admin = Session::get('admin');

    }
}
